import request from "@/utils/request";

//获取广告列表分页
export const GetAdvertisementList = () => {
  return request({
    method: "GET",
    url: `/guanggao`,
  });
};
//广告查询
export const GetAdvertisement = (data) => {
  return request({
    method: "GET",
    url: `/guanggao/${data.id}`,
  });
};
//广告上下架
export const ChangeAdvertisementStatus = (data) => {
  return request({
    method: "PUT",
    url: `/guanggao/shangjia/${data.id}`,
  });
};
//广告编辑
export const EditAdvertisement = (data) => {
  return request({
    method: "PUT",
    url: `/guanggao`,
    data
  });
};
